package com.yayun.merchant.mapper;

import com.yayun.merchant.domain.AuctionItem;
import java.util.List;

public interface AuctionItemMapper {
    /**
     * 查询拍卖商品
     */
    public AuctionItem selectAuctionItemById(Long id);

    /**
     * 查询拍卖商品列表
     */
    public List<AuctionItem> selectAuctionItemList(AuctionItem auctionItem);

    /**
     * 新增拍卖商品
     */
    public int insertAuctionItem(AuctionItem auctionItem);

    /**
     * 修改拍卖商品
     */
    public int updateAuctionItem(AuctionItem auctionItem);

    /**
     * 删除拍卖商品
     */
    public int deleteAuctionItemById(Long id);

    /**
     * 批量删除拍卖商品
     */
    public int deleteAuctionItemByIds(Long[] ids);

    /**
     * 查询进行中的拍卖
     */
    public List<AuctionItem> selectOngoingAuctions();

    /**
     * 查询即将开始的拍卖
     */
    public List<AuctionItem> selectUpcomingAuctions();

    /**
     * 查询需要结束的拍卖
     */
    public List<AuctionItem> selectEndingAuctions();
} 